<?php
require_once(dirname(__FILE__) . '/../../config.php');
require_once(DIR_SYSTEM . 'startup.php');

$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
$query = $db->query("select value FROM " . DB_PREFIX ."setting where `group`='google_identity_toolkit' and `key`='google_identity_toolkit_api_key'");
$row = $query->row;
$apiKey = $row['value'];
/**
 * The configuration for the relying party site customization.
 */
$gitConfig = array(
  // The API key in the Google API console.
  'apiKey' => "$apiKey",
  // The default URL after the user is logged in.
  'homeUrl' => '',
  // The user signup page.
  'signupUrl' => '',
  // Scan the these absolute directories when finding the implementations e.g. account service and
  // session manager. The multiple directories should be separated by a ,
  'externalClassPaths' => '',
  // The class name that implements the gitAccountService interface. You can also set the
  // implementation instance by leaving it empty and invoking the setter method in the gitContext
  // class. NOTE: The class name should be the same as the file name without the '.php' suffix.
  'accountService' => 'AccountServiceImpl',
  // The class name that implements the gitSessionManager interface. Same as the account service,
  // there is a setter method in the gitContext class. NOTE: the class name should be the same as
  // the file name without the '.php' suffix.
  'sessionManager' => 'SessionManagerImpl',
  //plugin verdion
  'pluginName' => 'oc15',
);
